package com.boarsoft.flow.demo.test;

import java.util.List;

import com.boarsoft.flow.core.bean.ProcessHandler;

public class Step1HandlerImpl implements ProcessHandler {
	private String key;

	@SuppressWarnings("unchecked")
	@Override
	public Object process(String entry, Object data, Throwable throwable) throws Throwable {
		// long s = System.nanoTime();
		((List<String>) data).add(key);
		//Thread.sleep(1L);
		// System.out.println(System.nanoTime() - s);
		return data;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

}
